package com.samoilovich.belarustoday.mainscreen;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;

import com.samoilovich.belarustoday.basefragments.BaseFragmentActivity;
import com.samoilovich.belarustoday.Constants;
import com.samoilovich.belarustoday.R;
import com.samoilovich.belarustoday.mainscreen.fragments.CategoryFragment;
import com.samoilovich.belarustoday.tools.Utility;

public class MainActivity extends BaseFragmentActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mUpdateButtonState = false;
        Utility.initImageLoader(getApplicationContext());
        setContentView(R.layout.main);
        setCategoriesFragment();
    }

    public void setCategoriesFragment() {
    	FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
    	 
    	transaction.replace(R.id.frameLayout_content, new CategoryFragment(), Constants.CATEGORIES_FRAGMENT_TAG);
    	transaction.commit();
    }

}
